<?php
/**
 * @ Fmash Top System
 * @ version: 3.0
 * @ author: i.coffee.smile@mail.com
 * @ date:2011-1-27
 * @ file:search.php $28
 */
 
include_once 'class_mysql.php';
include_once 'function.php';
include_once 'function_fav.php';

$url = en_now_url();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords" content="吉首大学,吉首大学社区,吉首大学网络社区,吉首大学排行榜,吉首大学bbs" />
        <meta name="description" content="收录吉首大学美女阵容，提供优质吉大信息。提供吉首大学学生一站式服务，如论坛、BBS、广场、社区等。" />
        <title>排行榜 - 吉首大学社区</title>
        <link href="style/mainv.css" media="screen" rel="stylesheet" type="text/css" />
        <link href="style/stylev.css" media="screen" rel="stylesheet" type="text/css" />
        <style type="text/css">
		.girlimg{max-width:90px;} 
		*html .girlimg{width:expression(this.width>90?"90px":this.width+"px");} 
		#t {
	font-size: 12px;
	color: #999;
}
        </style>

        <link type="image/x-icon" rel="shortcut icon" href="favicon.ico"/>
    </head>
    <body>
<?php include_once('header.template');?>
        <div id="wrapper">
            <div id="wrapper-inner">
<?php include_once('sidebar.template');?>
                <div id="canvas">
                    <div id="content">
                     <div class="pageheader">
                            <h2>
                                <form method="GET" action="" name="theForm">
								 <input type="text" name="key" <?php if(isset($_GET['key'])){ $key = incheck($_GET['key']); echo "onfocus=\"this.value=''\" value=\"$key\"";}?> />
                                 <input type="submit" id="button" value="查询帅哥姓名" />
                              </form>
                            </h2>
                            <div id="t">避免系统里面的数据存在出入，可以只搜索姓名里面的关键字。譬如：'张三四'，可以只搜索'张三'</div>

                      </div>
                        <div class="clear">
                        </div>
                        <div class="catalog">
                        <?php
						
						if(isset($_GET['key'])){					
						$key = incheck($_GET['key']);
						$sql = "SELECT `sid`,`name`,`show`,`branch` FROM `$top_man` WHERE `name` LIKE '%$key%' ORDER BY `hearts` DESC ";
						$result = mysql_query($sql);
						while($row = mysql_fetch_row($result))
						{
						?>
                            <div class="albumlist">
                                <a href="./?<?php echo $row[0];?>">
                                    <img class="girlimg" width="90px" height="90px" src="show/<?php echo $row[2];?>" />
                                </a>
                                <div id="album_heart">
                                    <a class="<?php echo heart_q($row[0]);?>" href="fav.php?sid=<?php echo $row[0]."&from=".$url;?>">
                                        <span>
                                            heart
                                        </span>
                                    </a>
                                </div>
                                <div class="albumlist_blk">
                                    <h2>
                                        <a href="./?<?php echo $row[0];?>">
                                            <?php echo $row[1];?>
                                        </a>
                                    </h2>
                                    <p>
                                        <a href="./?<?php echo $row[0];?>">
                                            <span>
                                            </span>
                                        </a>
                                        <?php echo $row[3];?>
                                        <!--
                                        <span>
                                            ( <?php //echo top_fav_num($row[0]);?>位粉丝)
                                        </span>
                                        -->
                                    </p>
                                </div>
                            </div>
                            <?php }}?>
                            <div id="pagination">
                            <div class="pages">
                            
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
<?php include_once("footer.template");?>
</body>
</html>